package org.openmore.consumer.dto.common;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openmore.common.enums.Platform;
import org.openmore.consumer.entity.enums.UserType;

import java.util.Date;


@ApiModel("User显示模型")
public class UserDto {
    @ApiModelProperty(value = "id")
    public String id;
    @ApiModelProperty(value = "用户类型：TYPE_USER, TYPE_STAFF, TYPE_ADMIN")
    public UserType userType;
    @ApiModelProperty(value = "手机号")
    public String phone;
    @ApiModelProperty(value = "qq的openid")
    public String qqOpenid;
    @ApiModelProperty(value = "wechat的openid")
    public String wechatOpenid;

    @ApiModelProperty("小程序openId")
    private String miniAppOpenid;
    @ApiModelProperty(value = "weibo的openid")
    public String weiboOpenid;
    @ApiModelProperty(value = "微信的统一id")
    public String unionId;
    @ApiModelProperty(value = "密码")
    public String password;
    @ApiModelProperty(value = "盐")
    public String salt;
    @ApiModelProperty(value = "手机冠号")
    public String code;
    @ApiModelProperty(value = "邮箱")
    public String email;
    @ApiModelProperty(value = "头像")
    public String avatarUrl;
    @ApiModelProperty(value = "角色id")
    public String roleId;
    @ApiModelProperty(value = "角色name")
    public String roleName;
    @ApiModelProperty(value = "上次登录ip")
    public String lastLoginIp;
    @ApiModelProperty(value = "用户昵称")
    public String nickname;
    @ApiModelProperty(value = "微信昵称")
    public String wechatName;
    @ApiModelProperty(value = "生日")
    public String birthday;
    @ApiModelProperty(value = "性别")
    public String gender;
    @ApiModelProperty(value = "位置")
    public String location;
    @ApiModelProperty(value = "省")
    public String province;
    @ApiModelProperty(value = "市")
    public String city;
    @ApiModelProperty(value = "县城")
    public String town;
    @ApiModelProperty(value = "所属区域")
    public String area;
    @ApiModelProperty(value = "注册来源")
    public Platform registFrom;
    @ApiModelProperty(value = "禁言状态")
    private Boolean forbiddenWords;
    @ApiModelProperty(value = "锁定状态")
    public boolean locked;
    @ApiModelProperty(value = "锁定时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date lockedTime;
    @ApiModelProperty(value = "userAgent")
    public String ua;
    @ApiModelProperty(value = "设备token")
    public String deviceToken;
    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date createdTime;
    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date updatedTime;
    @ApiModelProperty(value = "删除状态")
    public boolean deleted;
    @ApiModelProperty(value = "乐观锁")
    public int version;
    @ApiModelProperty(value = "操作人员")
    public String operator;
    @ApiModelProperty(value = "是否是vip")
    private Boolean isVip;
    @ApiModelProperty(value = "vip过期时间")
    private Date vipExpiredTime;
    @ApiModelProperty(value = "个人简介")
    private String instruct;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getId(){
        return this.id;
    }

    public UserType getUserType() {
        return userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public void setPhone(String phone){
        this.phone = phone;
    }

    public String getPhone(){
        return this.phone;
    }
    public void setQqOpenid(String qqOpenid){
        this.qqOpenid = qqOpenid;
    }

    public String getQqOpenid(){
        return this.qqOpenid;
    }
    public void setWechatOpenid(String wechatOpenid){
        this.wechatOpenid = wechatOpenid;
    }

    public String getWechatOpenid(){
        return this.wechatOpenid;
    }
    public void setWeiboOpenid(String weiboOpenid){
        this.weiboOpenid = weiboOpenid;
    }

    public String getWeiboOpenid(){
        return this.weiboOpenid;
    }
    public void setUnionId(String unionId){
        this.unionId = unionId;
    }

    public String getUnionId(){
        return this.unionId;
    }
    public void setPassword(String password){
        this.password = password;
    }

    public String getPassword(){
        return this.password;
    }
    public void setSalt(String salt){
        this.salt = salt;
    }

    public String getSalt(){
        return this.salt;
    }
    public void setCode(String code){
        this.code = code;
    }

    public String getCode(){
        return this.code;
    }
    public void setEmail(String email){
        this.email = email;
    }

    public String getEmail(){
        return this.email;
    }
    public void setAvatarUrl(String avatarUrl){
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl(){
        return this.avatarUrl;
    }
    public void setRoleId(String roleId){
        this.roleId = roleId;
    }

    public String getRoleId(){
        return this.roleId;
    }
    public void setLastLoginIp(String lastLoginIp){
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp(){
        return this.lastLoginIp;
    }
    public void setBirthday(String birthday){
        this.birthday = birthday;
    }

    public String getBirthday(){
        return this.birthday;
    }
    public void setGender(String gender){
        this.gender = gender;
    }

    public String getGender(){
        return this.gender;
    }
    public void setLocation(String location){
        this.location = location;
    }

    public String getLocation(){
        return this.location;
    }
    public void setProvince(String province){
        this.province = province;
    }

    public String getProvince(){
        return this.province;
    }
    public void setCity(String city){
        this.city = city;
    }

    public String getCity(){
        return this.city;
    }
    public void setTown(String town){
        this.town = town;
    }

    public String getTown(){
        return this.town;
    }
    public void setArea(String area){
        this.area = area;
    }

    public String getArea(){
        return this.area;
    }
    public void setLocked(boolean locked){
        this.locked = locked;
    }

    public boolean getLocked(){
        return this.locked;
    }
    public void setLockedTime(Date lockedTime){
        this.lockedTime = lockedTime;
    }

    public Date getLockedTime(){
        return this.lockedTime;
    }
    public void setUa(String ua){
        this.ua = ua;
    }

    public String getUa(){
        return this.ua;
    }
    public void setDeviceToken(String deviceToken){
        this.deviceToken = deviceToken;
    }

    public String getDeviceToken(){
        return this.deviceToken;
    }
    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }

    public Date getCreatedTime(){
        return this.createdTime;
    }
    public void setUpdatedTime(Date updatedTime){
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime(){
        return this.updatedTime;
    }
    public void setDeleted(boolean deleted){
        this.deleted = deleted;
    }

    public boolean getDeleted(){
        return this.deleted;
    }
    public void setVersion(int version){
        this.version = version;
    }

    public int getVersion(){
        return this.version;
    }
    public void setOperator(String operator){
        this.operator = operator;
    }

    public String getOperator(){
        return this.operator;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Platform getRegistFrom() {
        return registFrom;
    }

    public void setRegistFrom(Platform registFrom) {
        this.registFrom = registFrom;
    }

    public Boolean getIsVip() {
        return isVip;
    }

    public void setIsVip(Boolean isVip) {
        this.isVip = isVip;
    }

    public Date getVipExpiredTime() {
        return vipExpiredTime;
    }

    public void setVipExpiredTime(Date vipExpiredTime) {
        this.vipExpiredTime = vipExpiredTime;
    }

    public String getInstruct() {
        return instruct;
    }

    public void setInstruct(String instruct) {
        this.instruct = instruct;
    }

    public String getMiniAppOpenid() {
        return miniAppOpenid;
    }

    public void setMiniAppOpenid(String miniAppOpenid) {
        this.miniAppOpenid = miniAppOpenid;
    }

    public Boolean getForbiddenWords() {
        return forbiddenWords;
    }

    public void setForbiddenWords(Boolean forbiddenWords) {
        this.forbiddenWords = forbiddenWords;
    }

    public String getWechatName() {
        return wechatName;
    }

    public void setWechatName(String wechatName) {
        this.wechatName = wechatName;
    }
}
